obj-m += 1_chardev_read_write.o
1_chardev_read_write-y = 1_chardev_read_write_字符设备读写.o

obj-m += 2_chardev_type_int.o
2_chardev_type_int-y = 2_chardev_read_write_字符设备读写int类型.o

obj-m += 3_chardev_buffer1024.o
3_chardev_buffer1024-y = 3_chardev_read_write_字符设备读写_buffer1024-NG.o

PWD := $(CURDIR)
all:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean